/*
 * Copyright (c) OSGi Alliance (2016). All Rights Reserved.
 *
 * 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 org.osgi.service.converter;

import org.osgi.annotation.versioning.ProviderType;

/**
 * The Converter service is used to start a conversion. The service is obtained
 * from the service registry. The conversion is then completed via the
 * Converting interface that has methods to specify the target type.
 * 
 * @author $Id$
 * @ThreadSafe
 */
@ProviderType
public interface Converter {
	/**
	 * Start a conversion for the given object.
	 * 
	 * @param obj The object that should be converted.
	 * @return A {@link Converting} object to complete the conversion.
	 */
	Converting convert(Object obj);

	/**
	 * Obtain an adapter to this converter. The adapter behaves just like the
	 * converter except for the exception rules registered with is. For more
	 * details see the {@link Adapter} interface.
	 * 
	 * @return An adapter to this converter.
	 */
	Adapter getAdapter();
}

@@ -935,18 +935,17 @@
 type.%0A *
- 
 %0A
+
  * @auth
@@ -1063,25 +1063,24 @@
  object.%0A%09 *
- 
 %0A%09 * @param 
@@ -1227,16 +1227,268 @@
  obj);%0A%0A
+%09/**%0A%09 * Discuss: Create a copy of the provided object. This is the same as%0A%09 * %7B@code converter.convert(obj).to(obj.getClass());%7D%0A%09 * %0A%09 * @param obj The object to copy%0A%09 * @return The copied object%0A%09 */%0A%09default %3CT%3E T copy(T obj) %7B%0A%09%09return obj;%0A%09%7D%0A%0A
 %09/**%0A%09 *
@@ -1496,17 +1496,20 @@
 Obtain a
-n
+ new
  adapter
@@ -1626,16 +1626,171 @@
 with is.
+ It is also%0A%09 * possible to obtain a new Adapter for an existing adapter. This allows for%0A%09 * adding an additional layer of rules over an existing adapter.
  For mor
@@ -1837,25 +1837,24 @@
 terface.%0A%09 *
- 
 %0A%09 * @return
@@ -1898,19 +1898,19 @@
 Adapter 
-get
+new
 Adapter(

Change getAdapter() to newAdapter() in Converter API.