/**
 * Copyright (C) 2014 The SciGraph authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.sdsc.scigraph.services.refine;

import com.google.common.base.Optional;
import com.google.inject.AbstractModule;

public class RefineModule extends AbstractModule {

  private final ServiceMetadata metadata;

  public RefineModule(Optional<ServiceMetadata> metadata) {
    if (metadata.isPresent()) {
      this.metadata = metadata.get();
    } else {
      // TODO: Can this be moved to configuration?
      this.metadata = new ServiceMetadata();
      this.metadata.setName("SciGraph Reconciliation Service");
      this.metadata.setIdentifierSpace("http://example.org");
      this.metadata.setSchemaSpace("http://example.org");
    }
  }

  @Override
  protected void configure() {
    bind(ServiceMetadata.class).toInstance(metadata);
  }

}

@@ -784,16 +784,170 @@
 dule %7B%0A%0A
+  private static final String DEFAULT_SERVICE_NAME = %22SciGraph Reconciliation Service%22;%0A  private static final String ID_SPACE = %22http://example.org%22;%0A  %0A
   privat
@@ -1128,59 +1128,8 @@
 e %7B%0A
-      // TODO: Can this be moved to configuration?%0A
     
@@ -1201,41 +1201,28 @@
 ame(
-%22SciGraph Reconciliation Service%22
+DEFAULT_SERVICE_NAME
 );%0A 
@@ -1259,36 +1259,24 @@
 erSpace(
-%22http://example.org%22
+ID_SPACE
 );%0A     
@@ -1305,36 +1305,24 @@
 maSpace(
-%22http://example.org%22
+ID_SPACE
 );%0A    %7D

Externalizes strings