private void initInitialHeapSize() {
   final String initialHeapSizeStr = properties.getProperty(PROPERTY_INITIAL_HEAP_SIZE);
   JavaHeapSize initialJavaHeapSize = INITIAL_HEAP_SIZE_DEFAULT;
   if (initialHeapSizeStr != null) {
     try {
       initialJavaHeapSize = JavaHeapSize.valueOf(initialHeapSizeStr);
     } catch (IllegalArgumentException e) {
       logger.warn(WARN_MSG_INVALID_VALUE, initialHeapSizeStr, PROPERTY_INITIAL_HEAP_SIZE);
     }
   }
   properties.setProperty(PROPERTY_INITIAL_HEAP_SIZE, initialJavaHeapSize.name());
 }
 private void initMaxHeapSize() {
   final String maxHeapSizeStr = properties.getProperty(PROPERTY_MAX_HEAP_SIZE);
   JavaHeapSize maxJavaHeapSize = MAX_HEAP_SIZE_DEFAULT;
   if (maxHeapSizeStr != null) {
     try {
       maxJavaHeapSize = JavaHeapSize.valueOf(maxHeapSizeStr);
     } catch (IllegalArgumentException e) {
       logger.warn(WARN_MSG_INVALID_VALUE, maxHeapSizeStr, PROPERTY_MAX_HEAP_SIZE);
     }
   }
   properties.setProperty(PROPERTY_MAX_HEAP_SIZE, maxJavaHeapSize.name());
 }
 public synchronized JavaHeapSize getInitialHeapSize() {
   return JavaHeapSize.valueOf(properties.getProperty(PROPERTY_INITIAL_HEAP_SIZE));
 }
 public synchronized void setInitialHeapSize(JavaHeapSize initialHeapSize) {
   properties.setProperty(PROPERTY_INITIAL_HEAP_SIZE, initialHeapSize.name());
 }
 public synchronized JavaHeapSize getMaxHeapSize() {
   return JavaHeapSize.valueOf(properties.getProperty(PROPERTY_MAX_HEAP_SIZE));
 }
 public synchronized void setMaxHeapSize(JavaHeapSize maxHeapSize) {
   properties.setProperty(PROPERTY_MAX_HEAP_SIZE, maxHeapSize.name());
 }