*/
public Assembler createAssembler(AssemblerConfig config) {
File source = config.getSource();
if ( source == null ) {
return new FileAssembler();
}
if ( source.getName().toLowerCase().endsWith( ".war" ) ) {
return new WarAssembler();
}
if ( source.getName().toLowerCase().endsWith( ".ear" ) ) {
return new EarAssembler();
}
return new FileAssembler();
}