public static LightblueClientConfiguration fromResource(String resourcePath,
                                                            ClassLoader classLoader) {
        InputStream propertiesStream = classLoader.getResourceAsStream(resourcePath);

        if (propertiesStream == null) {
            LOGGER.error("Could not find properties resource at " + resourcePath);
            throw new LightblueClientConfigurationException("Could not find properties resource "
                    + "at " + resourcePath);
        }

        return fromInputStream(propertiesStream);
    }
public static LightblueClientConfiguration fromResource ( String resourcePath , ClassLoader classLoader ) { InputStream propertiesStream = classLoader . getResourceAsStream ( resourcePath ) ; if ( propertiesStream == null ) { LOGGER . error ( "Could not find properties resource at " + resourcePath ) ; throw new LightblueClientConfigurationException ( "Could not find properties resource " + "at " + resourcePath ) ; } return fromInputStream ( propertiesStream ) ; }
For client configuration property keys, see
{@link com.redhat.lightblue.client.PropertiesLightblueClientConfiguration}.

@param resourcePath Follows the semantics of
{@link java.lang.ClassLoader#getResourceAsStream(String)}, which is to
say it is a relative / separated path from the root of the class path and
should <em>not</em> start with a forward slash (/).
@param classLoader The class loader to use to find the resource.