pojo/src/main/java/org/jboss/as/pojo/descriptor/BeanMetaDataConfig.java
public static ServiceName toInstancesName(Class<?> clazz, BeanState state) {
        String clName;
        ClassLoader classLoader = clazz.getClassLoader();
        if (classLoader != null)
            clName = classLoader.toString();
        else
            clName = "SystemClassLoader";

        if (state == null)
            state = BeanState.INSTALLED;

        return JBOSS_POJO.append(clName, clazz.getName(), state.name());
    }
public static ServiceName toInstancesName(Class<?> clazz, BeanState state) {
        String clName;
        ClassLoader classLoader = clazz.getClassLoader();
        if (classLoader != null)
            clName = classLoader.toString();
        else
            clName = "SystemClassLoader";

        if (state == null)
            state = BeanState.INSTALLED;

        return JBOSS_POJO.append(clName, clazz.getName(), state.name());
    }
public static ServiceName toInstancesName ( Class < ? > clazz , BeanState state ) { String clName ; ClassLoader classLoader = clazz . getClassLoader ( ) ; if ( classLoader != null ) clName = classLoader . toString ( ) ; else clName = "SystemClassLoader" ; if ( state == null ) state = BeanState . INSTALLED ; return JBOSS_POJO . append ( clName , clazz . getName ( ) , state . name ( ) ) ; }
To instances name.

@param clazz the class
@param state the bean state
@return unique instance name
To instances name .