code: private static boolean getBooleanValue(String value) {
  
          if ("1".equals(value)) {
              // XML schema allows for "1" as value for "true"
              return true;
          }
          return Boolean.valueOf(value).booleanValue();
      }
docs: Special boolean value generation method since XML schema allows for
  "1" as possible value for <code>true</code>, while Java only allows <code>"true"</code>.
  
  @param value the String to get the boolean value for
  
  @return the boolean value of the String according to the XML schema rules