private static void loadClientProperties(String propertiesPath, String clazzName,
            Map<?, Map<String, String>> clientProperties, Map<String, Map<String, String>> entityConfigurations)
    {

        InputStream inputStream = PropertyReader.class.getClassLoader().getResourceAsStream(propertiesPath);
        clientProperties = JsonUtil.readJson(inputStream, Map.class);

        if (clientProperties != null)
        {
            if (clientProperties.get("all") != null)
            {
                entityConfigurations.put(clazzName, clientProperties.get("all"));
            }
            else
            {

                Iterator iter = clientProperties.keySet().iterator();

                while (iter.hasNext())
                {
                    Object key = iter.next();
                    if (((String) key).indexOf(',') > 0)
                    {
                        StringTokenizer tokenizer = new StringTokenizer((String) key, ",");
                        while (tokenizer.hasMoreElements())
                        {
                            String token = tokenizer.nextToken();
                            entityConfigurations.put(token, clientProperties.get(key));
                        }
                    }
                    else
                    {
                        entityConfigurations.put((String) key, clientProperties.get(key));
                    }
                }
            }
        }

    }
private static void loadClientProperties ( String propertiesPath , String clazzName , Map < ? , Map < String , String > > clientProperties , Map < String , Map < String , String > > entityConfigurations ) { InputStream inputStream = PropertyReader . class . getClassLoader ( ) . getResourceAsStream ( propertiesPath ) ; clientProperties = JsonUtil . readJson ( inputStream , Map . class ) ; if ( clientProperties != null ) { if ( clientProperties . get ( "all" ) != null ) { entityConfigurations . put ( clazzName , clientProperties . get ( "all" ) ) ; } else { Iterator iter = clientProperties . keySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Object key = iter . next ( ) ; if ( ( ( String ) key ) . indexOf ( ',' ) > 0 ) { StringTokenizer tokenizer = new StringTokenizer ( ( String ) key , "," ) ; while ( tokenizer . hasMoreElements ( ) ) { String token = tokenizer . nextToken ( ) ; entityConfigurations . put ( token , clientProperties . get ( key ) ) ; } } else { entityConfigurations . put ( ( String ) key , clientProperties . get ( key ) ) ; } } } } }
Load client properties.

@param propertiesPath
the properties path
@param clazzName
the clazz name
@param clientProperties
the client properties
@param entityConfigurations
the entity configurations