container/common/src/main/java/org/mobicents/slee/container/management/jmx/MobicentsManagement.java
private String getLog4jPath(String profile) {
	  return (profile == null || profile.equals("") || profile.equalsIgnoreCase("current")) ? log4jConfigFilePath : log4jTemplatesPath + profile;
	}
private String getLog4jPath(String profile) {
	  return (profile == null || profile.equals("") || profile.equalsIgnoreCase("current")) ? log4jConfigFilePath : log4jTemplatesPath + profile;
	}
private String getLog4jPath ( String profile ) { return ( profile == null || profile . equals ( "" ) || profile . equalsIgnoreCase ( "current" ) ) ? log4jConfigFilePath : log4jTemplatesPath + profile ; }
/*
public String getLoggingConfiguration(String profile) throws ManagementException {
try {
return readFile(getLog4jPath(profile));
}
catch (IOException ioe) {
throw new ManagementException("Failed to read log4j configuration file for profile '" + profile + "'. Does it exists?", ioe);
}
}

public void setLoggingConfiguration(String profile, String contents) throws ManagementException {
try {
writeFile(getLog4jPath(profile), contents);
}
catch (IOException ioe) {
throw new ManagementException("Failed to update log4j configuration file for profile '" + profile + "'.", ioe);
}
}

public void switchLoggingConfiguration(String newProfile) throws ManagementException {
try {
A direct copy would have better performance, but since we
already have and need to have these methods, let's use them.
String srcPath = getLog4jPath(newProfile);
String destPath = getLog4jPath("");
writeFile(destPath, readFile(srcPath));
}
catch (IOException ioe) {
throw new ManagementException("Failed to update log4j configuration file for profile '" + newProfile + "'.", ioe);
}
}
/ * public String getLoggingConfiguration ( String profile ) throws ManagementException { try { return readFile ( getLog4jPath ( profile )) ; } catch ( IOException ioe ) { throw new ManagementException ( Failed to read log4j configuration file for profile + profile + . Does it exists? ioe ) ; } }