{
MuleApplicationClassLoader muleCL = (MuleApplicationClassLoader) ccl;
// check if there's an app-specific logging configuration available,
// scope the lookup to this classloader only, as getResource() will delegate to parents
// locate xml config first, fallback to properties format if not found
URL appLogConfig = muleCL.findResource("log4j.xml");
if (appLogConfig == null)
{
appLogConfig = muleCL.findResource("log4j.properties");
}
final String appName = muleCL.getAppName();