}
@Override
public void deploy(DeploymentUnit unit, Module deployment) throws DeploymentException
{
unit.addAttachment(ReflectProvider.class, new CachingReflectProvider(provider)); // wrap with cache
if (handler != null)
unit.addAttachment(ErrorHandler.class, handler);
if (finder != null)
unit.addAttachment(ResourceOwnerFinder.class, finder);
}