code: public static <A> A getOptionalAttachment( final Deployment dep, final Class< A > key )
     {
        return dep.getAttachment( key );
     }
docs: Returns optional attachment value from webservice deployment or null if not bound.
  
  @param <A> expected value
  @param dep webservice deployment
  @param key attachment key
  @return optional attachment value or null