code: public static boolean hasAttachment( final Deployment dep, final Class< ? > key )
     {
        return WSHelper.getOptionalAttachment( dep, key ) != null;
     }
docs: Returns true if webservice deployment have attachment value associated with the <b>key</b>.
  
  @param dep webservice deployment
  @param key attachment key
  @return true if contains attachment, false otherwise