}
public PackageInfo getPackageInfoForPackage(JavaPackage pack, String packageName) {
PackageInfo packageInfo = packageToPackageInfoMappings.get(packageName);
if (packageInfo == null) {
XmlSchema xmlSchema = (XmlSchema) helper.getAnnotation(pack, XmlSchema.class);
packageInfo = new PackageInfo();
NamespaceInfo namespaceInfo = null;
if(xmlSchema != null) {
namespaceInfo = findInfoForNamespace(xmlSchema.namespace());
}
if(namespaceInfo == null) {
namespaceInfo = processNamespaceInformation(xmlSchema);
}