* @return A ChangeSet that can be processed by this Agent.
*/
public ChangeSet getChangeSet(Resource resource) {
if ( this.semanticModules == null ) {
this.semanticModules = new SemanticModules();
this.semanticModules.addSemanticModule( new ChangeSetSemanticModule() );
}
XmlChangeSetReader reader = new XmlChangeSetReader( this.semanticModules );
if ( resource instanceof ClassPathResource ) {
reader.setClassLoader( ((ClassPathResource) resource).getClassLoader(),