code: public static String getPackage(String element) {
          Preconditions.checkNotNull(element,"argument 'element' can not be null");
          return element.substring(0, element.lastIndexOf('.'));
      }
docs: Extracts the package from a qualified class.
  
  @param element string of the qualified class
  @return package