* @param app Classloader to be used for all classes of Castor and its required libraries.
* @param domain Classloader to be used for all domain objects.
* @return Properties instance for Castor CPA modul.
*/
public static AbstractProperties newInstance(final ClassLoader app, final ClassLoader domain) {
AbstractProperties core = new CoreProperties(app, domain);
AbstractProperties cpa = new CPAProperties(core);
AbstractProperties xml = new XMLProperties(cpa);
AbstractProperties castor = new CastorProperties(xml);
return castor;
}