docs: @SuppressWarnings("unchecked")
      public static DeploymentType getDeployment(InputStream deployIS) {
          try {
              if (m_jc == null || m_schema == null) {
                  throw new RuntimeException("Error schema validation.");
              }
              Unmarshaller unmarshaller = m_jc.createUnmarshaller();
              unmarshaller.setSchema(m_schema);
              JAXBElement<DeploymentType> result =
                  (JAXBElement<DeploymentType>) unmarshaller.unmarshal(deployIS);
              DeploymentType deployment = result.getValue();
              populateDefaultDeployment(deployment);
              return deployment;
          } catch (JAXBException e) {
              // Convert some linked exceptions to more friendly errors.
              if (e.getLinkedException() instanceof java.io.FileNotFoundException) {
                  hostLog.error(e.getLinkedException().getMessage());
                  return null;
              } else if (e.getLinkedException() instanceof org.xml.sax.SAXParseException) {
                  hostLog.error("Error schema validating deployment.xml file. " + e.getLinkedException().getMessage());
                  return null;
              } else {
                  throw new RuntimeException(e);
              }
          }
      }