A Java package is mapped to the general UML Package. It does not have any specific stereotypes and properties. However, if the UML package represents the Java package, it must not have a «modelLibrary» stereotype from a standard UML profile. The «modelLibrary» stereotype is used to show the root package, where the Java package tree ends and no parent packages, including «modelLibrary», are part of the Java package structure. The figure below shows java.lang.String added into the working package. Packages java and lang represent general Java packages, but working package with L is stereotyped with «modelLibrary» and is not part of the Java package.

Package Structure