public void visitMethod(CompositeComponent parent, Method method,
PojoComponentType<JavaMappedService, JavaMappedReference, JavaMappedProperty<?>> type,
DeploymentContext context)
throws ProcessingException {
Destroy annotation = method.getAnnotation(Destroy.class);
if (annotation == null) {
return;
}
if (method.getParameterTypes().length != 0) {
IllegalDestructorException e = new IllegalDestructorException("Destructor must not have argments");