/*******************************************************************************
 * Copyright 2015 Friedrich-Schiller-Universität Jena
 *
 * 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.
 *
 * Contributors:
 *     Stephan Druskat - initial API and implementation
 *******************************************************************************/
package org.corpus_tools.atomic.pepper;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import de.hu_berlin.german.korpling.saltnpepper.pepper.cli.PepperStarterConfiguration;
import de.hu_berlin.german.korpling.saltnpepper.pepper.connectors.PepperConnector;

/**
 * TODO Description
 *
 * <p>@author Stephan Druskat <stephan.druskat@uni-jena.de>
 *
 */
public class AtomicPepperStarter {
	
	/** 
	 * Defines a static logger variable so that it references the {@link org.apache.logging.log4j.Logger} instance named "AtomicPepperStarter".
	 */
	private static final Logger log = LogManager.getLogger(AtomicPepperStarter.class);
	private PepperConnector pepper = null;
	
	public void startPepper() {
		AtomicPepperOSGiConnector pepper = null;
		AtomicPepperConfiguration pepperProps = null;
		
		pepperProps = new AtomicPepperConfiguration();
		pepperProps.load();
		
		pepper = new AtomicPepperOSGiConnector();
		pepper.setConfiguration(pepperProps);
		
		setPepper(pepper);
	}
	
	/**
	 * @return the pepper
	 */
	public PepperConnector getPepper() {
		return pepper;
	}

	/**
	 * @param pepper the pepper to set
	 */
	public void setPepper(PepperConnector pepper) {
		this.pepper = pepper;
		if (!getPepper().isInitialized()) {
			getPepper().init();
		}
	}



}

@@ -1030,37 +1030,20 @@
 er.c
-li
+ommon
 .Pepper
-StarterConfiguration
 ;%0Aim
@@ -1136,23 +1136,345 @@
  * T
-ODO Description
+his class configures and starts an instance of %7B@link Pepper%7D (implemented in%0A * %7B@link AtomicPepperOSGiConnector%7D. It also stores the Pepper instance in%0A * %7B@link AtomicPepperStarter#pepper%7D, which can be got from the instantiators%0A * of this class via %7B@link AtomicPepperStarter#getPepper()%7D to perform%0A * actions on the Pepper object.
 %0A *%0A
@@ -2033,72 +2033,299 @@
 ;%0A%09%09
-pepperProps.load();%0A%09%09%0A%09%09pepper = new AtomicPepperOSGiConnector(
+log.trace(%22Loading Pepper properties via the object %7B%7D.%22, pepperProps);%0A%09%09pepperProps.load();%0A%09%09%0A%09%09pepper = new AtomicPepperOSGiConnector();%0A%09%09log.trace(%22Setting the Pepper properties (%7B%7D) as configuration in the %7B%7D object %7B%7D.%22, pepperProps, AtomicPepperOSGiConnector.class.getName(), pepper
 );%0A%09
@@ -2413,22 +2413,70 @@
 urn the 
-pepper
+Pepper instance (as a %7B@link PepperConnector%7D object).
 %0A%09 */%0A%09p
@@ -2559,18 +2559,26 @@
 per 
-the p
+The %7B@link P
 epper
+%7D
  to 

Add Javadoc and logs to AtomicPepperStarter