container/profiles/src/main/java/org/mobicents/slee/container/profile/AbstractProfileMBeanImpl.java
public static ObjectName getObjectName(
            String profileTableName, String profileName) {
        // FIXME use only the "quoted" version when issue is fully solved at the JMX Console side
        try {
            return new ObjectName(ProfileMBean.BASE_OBJECT_NAME + ','
                    + ProfileMBean.PROFILE_TABLE_NAME_KEY + '='
                    + profileTableName + ','
                    + ProfileMBean.PROFILE_NAME_KEY + '='
                    + (profileName != null ? profileName : ""));
        } catch (Throwable e) {
            try {
                return new ObjectName(ProfileMBean.BASE_OBJECT_NAME + ','
                        + ProfileMBean.PROFILE_TABLE_NAME_KEY + '='
                        + ObjectName.quote(profileTableName) + ','
                        + ProfileMBean.PROFILE_NAME_KEY + '='
                        + ObjectName.quote(profileName != null ? profileName : ""));
            } catch (Throwable f) {
                throw new SLEEException(e.getMessage(), e);
            }
        }
    }
public static ObjectName getObjectName(
            String profileTableName, String profileName) {
        // FIXME use only the "quoted" version when issue is fully solved at the JMX Console side
        try {
            return new ObjectName(ProfileMBean.BASE_OBJECT_NAME + ','
                    + ProfileMBean.PROFILE_TABLE_NAME_KEY + '='
                    + profileTableName + ','
                    + ProfileMBean.PROFILE_NAME_KEY + '='
                    + (profileName != null ? profileName : ""));
        } catch (Throwable e) {
            try {
                return new ObjectName(ProfileMBean.BASE_OBJECT_NAME + ','
                        + ProfileMBean.PROFILE_TABLE_NAME_KEY + '='
                        + ObjectName.quote(profileTableName) + ','
                        + ProfileMBean.PROFILE_NAME_KEY + '='
                        + ObjectName.quote(profileName != null ? profileName : ""));
            } catch (Throwable f) {
                throw new SLEEException(e.getMessage(), e);
            }
        }
    }
public static ObjectName getObjectName ( String profileTableName , String profileName ) { // FIXME use only the "quoted" version when issue is fully solved at the JMX Console side try { return new ObjectName ( ProfileMBean . BASE_OBJECT_NAME + ' ' + ProfileMBean . PROFILE_TABLE_NAME_KEY + ' ' + profileTableName + ' ' + ProfileMBean . PROFILE_NAME_KEY + ' ' + ( profileName != null ? profileName : "" ) ) ; } catch ( Throwable e ) { try { return new ObjectName ( ProfileMBean . BASE_OBJECT_NAME + ' ' + ProfileMBean . PROFILE_TABLE_NAME_KEY + ' ' + ObjectName . quote ( profileTableName ) + ' ' + ProfileMBean . PROFILE_NAME_KEY + ' ' + ObjectName . quote ( profileName != null ? profileName : "" ) ) ; } catch ( Throwable f ) { throw new SLEEException ( e . getMessage ( ) , e ) ; } } }
Retrieves the JMX ObjectName for a profile, given its profile name and
profile table name

@param profileTableName
@param profileName
@return
@throws MalformedObjectNameException
Retrieves the JMX ObjectName for a profile given its profile name and profile table name