if (mojo != null) {
getLogger().info("found @Mojo in: " + clazz.getName());
mojoDescriptor = new MojoDescriptor();
mojoDescriptor.setLanguage("java");
mojoDescriptor.setImplementation(clazz.getName());
mojoDescriptor.setDescription(mojo.description().trim());
mojoDescriptor.setInstantiationStrategy(mojo.instantiationStrategy().value);
mojoDescriptor.setExecutionStrategy(mojo.executionStrategy().value);
String configurator = clazz.getAnnotation(Mojo.class).configurator();
if (configurator.trim().length() > 0) {
mojoDescriptor.setComponentConfigurator(configurator.trim());