protected XMLPropertiesFormatBindingBuilder bindProperties( final String classPathResource,
                                                                final ClassLoader classLoader )
    {
        checkNotNull( classPathResource, "Parameter 'classPathResource' must be not null" );
        checkNotNull( classLoader, "Parameter 'classLoader' must be not null" );

        String resourceURL = classPathResource;
        if ( '/' == classPathResource.charAt( 0 ) )
        {
            resourceURL = classPathResource.substring( 1 );
        }

        URL url = classLoader.getResource( resourceURL );
        checkNotNull( url,
                      "ClassPath resource '%s' not found, make sure it is in the ClassPath or you're using the right ClassLoader",
                      classPathResource );

        return bindProperties( url );
    }
protected XMLPropertiesFormatBindingBuilder bindProperties ( final String classPathResource , final ClassLoader classLoader ) { checkNotNull ( classPathResource , "Parameter 'classPathResource' must be not null" ) ; checkNotNull ( classLoader , "Parameter 'classLoader' must be not null" ) ; String resourceURL = classPathResource ; if ( '/' == classPathResource . charAt ( 0 ) ) { resourceURL = classPathResource . substring ( 1 ) ; } URL url = classLoader . getResource ( resourceURL ) ; checkNotNull ( url , "ClassPath resource '%s' not found, make sure it is in the ClassPath or you're using the right ClassLoader" , classPathResource ) ; return bindProperties ( url ) ; }
@param classPathResource
@param classLoader
@return