code: public String getClassNameForEntity(String name) {
          if (name.indexOf(".") > -1)
              return getNsPackage() + "." + name;
          else
              return getPackage() + "." + name;
      }
docs: Returns a fully qualified class name for the given struct/enum/interface
  name.  If the name is namespaced, nsPackage is used.  Otherise package is
  used to prefix the name.