* @param mainClassName the main class name
* @throws ClassNotFoundException for any error
*/
protected void processJBossClientMetaData(VFSDeploymentUnit unit, AnnotationFinder<AnnotatedElement> finder, String mainClassName) throws ClassNotFoundException
{
ApplicationClient5MetaDataCreator creator = new ApplicationClient5MetaDataCreator(finder, mainClassName);
Collection<Class<?>> classes = new ArrayList<Class<?>>(1);
Class<?> mainClass = unit.getClassLoader().loadClass(mainClassName);
classes.add(mainClass);
ApplicationClientMetaData annotationMetaData = creator.create(classes);
if(annotationMetaData != null)
unit.addAttachment(CLIENT_ANNOTATED_ATTACHMENT_NAME, annotationMetaData, ApplicationClientMetaData.class);
}