Create a new instance of the {@link Bitflyer4j} with instance specific properties.
A new instance is created for each invocation.

@param properties Instance specific properties.
@return New instance.
327504
public Bitflyer4j createInstance(Properties properties) {

        log.info("Creating instance.");

        final AbstractConfiguration conf = createConfiguration(properties);

        final Class<? extends RealtimeService> realtimeClass = getRealtimeType(conf);

        Module module = new AbstractModule() {
            @Override
            protected void configure() {

                bind(Configuration.class).toInstance(conf);

                bind(EventSource.class).toInstance(conf);

                bind(Gson.class).toProvider(GsonProvider.class).asEagerSingleton();

                bind(PubNub.class).toProvider(PubNubProvider.class).asEagerSingleton();

                bind(Socket.class).toProvider(SocketProvider.class).asEagerSingleton();

                bind(Environment.class).to(EnvironmentImpl.class).asEagerSingleton();

                bind(Throttler.class).to(ThrottlerImpl.class).asEagerSingleton();

                bind(ExecutorFactory.class).to(ExecutorFactoryImpl.class).asEagerSingleton();

                bind(HttpClient.class).to(HttpClientImpl.class).asEagerSingleton();

                bind(Bitflyer4j.class).to(Bitflyer4jImpl.class).asEagerSingleton();

                bind(MarketService.class).to(MarketServiceImpl.class).asEagerSingleton();

                bind(AccountService.class).to(AccountServiceImpl.class).asEagerSingleton();

                bind(OrderService.class).to(OrderServiceImpl.class).asEagerSingleton();

                bind(RealtimeService.class).to(realtimeClass).asEagerSingleton();

            }
        };

        return Guice.createInjector(module).getInstance(Bitflyer4j.class);

    }
841140
public ConfigViewImpl withProperties(Properties properties) {
        if (properties != null) {
            this.properties = properties;
            this.strategy.withProperties(properties);
        }
        return this;
    }
794430
public Kafka properties(Properties properties) {
		Preconditions.checkNotNull(properties);
		if (this.kafkaProperties == null) {
			this.kafkaProperties = new HashMap<>();
		}
		this.kafkaProperties.clear();
		properties.forEach((k, v) -> this.kafkaProperties.put((String) k, (String) v));
		return this;
	}
412025
public static Properties jslPropertiesToJavaProperties(
            final JSLProperties xmlProperties) {

        final Properties props = new Properties();

        for (final Property prop : xmlProperties.getPropertyList()) {
            props.setProperty(prop.getName(), prop.getValue());
        }

        return props;

    }
1089768
public FacesConfigPropertyType<FacesConfigConverterType<T>> getOrCreateProperty()
   {
      List<Node> nodeList = childNode.get("property");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigPropertyTypeImpl<FacesConfigConverterType<T>>(this, "property", childNode, nodeList.get(0));
      }
      return createProperty();
   }
34673
@Override
	protected ControllerEntityLinks createInstance() {

		Collection<Class<?>> controllerTypes = new HashSet<>();

		for (Class<?> controllerType : getBeanTypesWithAnnotation(annotation)) {
			if (AnnotationUtils.findAnnotation(controllerType, ExposesResourceFor.class) != null) {
				controllerTypes.add(controllerType);
			}
		}

		return new ControllerEntityLinks(controllerTypes, linkBuilderFactory);
	}
551678
public KafkaEndpointBuilder consumerProperties(Map<String, Object> consumerProperties) {
        endpoint.getEndpointConfiguration().setConsumerProperties(consumerProperties);
        return this;
    }
1295564
public Properties<JobXMLDescriptor> getOrCreateProperties()
   {
      Node node = model.getOrCreate("properties");
      Properties<JobXMLDescriptor> properties = new PropertiesImpl<JobXMLDescriptor>(this, "properties", model, node);
      return properties;
   }
641216
public FessMessages addErrorsCrudFailedToCreateInstance(String property) {
        assertPropertyNotNull(property);
        add(property, new UserMessage(ERRORS_crud_failed_to_create_instance));
        return this;
    }
217320
public Response createSystemProperty(SystemProperty property) {
		return restClient.post("system/properties", property, new HashMap<String, String>());
	}
1062339
public Client createWithValues(Object... varValues) {
        serviceFactory.setBus(getBus());
        checkResources(false);
        ClassResourceInfo cri = null;
        try {
            Endpoint ep = createEndpoint();
            if (getServiceClass() != null) {
                for (ClassResourceInfo info : serviceFactory.getClassResourceInfo()) {
                    if (info.getServiceClass().isAssignableFrom(getServiceClass())
                        || getServiceClass().isAssignableFrom(info.getServiceClass())) {
                        cri = info;
                        break;
                    }
                }
                if (cri == null) {
                    // can not happen in the reality
                    throw new RuntimeException("Service class " + getServiceClass().getName()
                                               + " is not recognized");
                }
            } else {
                cri = serviceFactory.getClassResourceInfo().get(0);
            }

            boolean isRoot = cri.getURITemplate() != null;
            ClientProxyImpl proxyImpl = null;
            ClientState actualState = getActualState();
            proxyImpl = createClientProxy(cri, isRoot, actualState, varValues);
            initClient(proxyImpl, ep, actualState == null);

            final Class<?> serviceClass = cri.getServiceClass();
            ClassLoader theLoader = AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {

                @Override
                public ClassLoader run() {
                    return proxyLoader == null ? serviceClass.getClassLoader() : proxyLoader;
                }
            });
            Class<?>[] ifaces = new Class[]{Client.class, InvocationHandlerAware.class, cri.getServiceClass()};
            Client actualClient = (Client)ProxyHelper.getProxy(theLoader, ifaces, proxyImpl);
            proxyImpl.setProxyClient(actualClient);
            notifyLifecycleManager(actualClient);
            this.getServiceFactory().sendEvent(FactoryBeanListener.Event.CLIENT_CREATED, actualClient, ep);
            return actualClient;
        } catch (IllegalArgumentException ex) {
            String message = ex.getLocalizedMessage();
            if (cri != null) {
                String expected = cri.getServiceClass().getSimpleName();
                if ((expected + " is not an interface").equals(message)) {
                    message += "; make sure CGLIB is on the classpath";
                }
            }
            LOG.severe(ex.getClass().getName() + " : " + message);
            throw ex;
        } catch (Exception ex) {
            LOG.severe(ex.getClass().getName() + " : " + ex.getLocalizedMessage());
            throw new RuntimeException(ex);
        }

    }
652326
public JavaBeanGeneratorCreator<T> randomizeProperty(String property)
	{
		if(property  ==null || property.length() == 0)
			return this;
		
		this.randomizeProperties.add(property);
		
		return this;
	}
386641
private PropertyDescriptor newPropertyDescriptor(final Attributes attributes) {

        final PropertyDescriptor propDesc = FACTORY.createPropertyDescriptor();
        LOG.debug("property name={}", attributes.getValue("name"));
        LOG.debug("property jcrType={}", attributes.getValue("jcrType"));
        propDesc.setName(attributes.getValue("name"));
        propDesc.setJcrType(PropertyValueType.fromValue(attributes.getValue("jcrType")));
        return propDesc;
    }
792034
public static Factory newInstance() {
        ScheduledExecutorService scheduler = newSingleThreadScheduledExecutor(new ThreadFactory() {
            public Thread newThread(Runnable r) {
                Thread result = new Thread(r);
                result.setDaemon(true);
                return result;
            }
        });
        Properties props = new Properties();
        return new DefaultFactory(scheduler, props);
    }
515657
public static AbstractRunner<Long, Long> instantiateRecommender(final Properties properties) {
        if (properties.getProperty(RECOMMENDER) == null) {
            System.out.println("No recommenderClass specified, exiting.");
            return null;
        }
        if (properties.getProperty(TRAINING_SET) == null) {
            System.out.println("No training set specified, exiting.");
            return null;
        }
        if (properties.getProperty(TEST_SET) == null) {
            System.out.println("No training set specified, exiting.");
            return null;
        }

        AbstractRunner<Long, Long> rr = null;
        if (properties.getProperty(FRAMEWORK).equals(MAHOUT)) {
            rr = new MahoutRecommenderRunner(properties);
        } else if (properties.getProperty(FRAMEWORK).equals(LENSKIT)) {
            rr = new LenskitRecommenderRunner(properties);
        } else if (properties.getProperty(FRAMEWORK).equals(RANKSYS)) {
            rr = new RanksysRecommenderRunner(properties);
        }
        return rr;
    }
1136959
function toInstance(properties) {
        //TODO maybe fail if instance of Resource

        var resource = Object.create(DefinedResource.prototype);

        //TODO trasfer properties to resource
        mergeProperties(resource, properties);

        return resource;
    }
1071802
public Configuration withProperties(java.util.Map<String, String> properties) {
        setProperties(properties);
        return this;
    }