static ClassNameWithPackage of(String fqClassName) {
      int indexOfLastDot = fqClassName.lastIndexOf('.');

      if (indexOfLastDot == -1) {
        return new ClassNameWithPackage("", fqClassName);
      }

      String specifiedPackage = fqClassName.substring(0, indexOfLastDot);
      String simpleClassName = fqClassName.substring(indexOfLastDot + 1);

      return new ClassNameWithPackage(specifiedPackage, simpleClassName);
    }
In-memory representation of the name and source code of a Java class.
geode-junit/src/main/java/org/apache/geode/test/compiler/InMemorySourceFile.java