final DeploymentReflectionIndex reflectionIndex = deploymentUnit.getAttachment(REFLECTION_INDEX);
final ClassReflectionIndex<?> classIndex;
try {
classIndex = reflectionIndex.getClassIndex(Class.forName(className, false, classLoader));
} catch (ClassNotFoundException e) {
throw new DeploymentUnitProcessingException(e);
}
Collection<Method> methods = null;
if (paramType != null) {
// find the methods with the specific name and the param types
methods = ClassReflectionIndexUtil.findMethods(reflectionIndex, classIndex, name, paramType);