}
/**
- * Generic method that will return an implementation of the given service
- * interface or <code>null</code> if the
+ * Generic method that will scan the getters of {@link ICdmApplicationConfiguration} for the given service
+ * interface. If a matching getter is found the according service implementation is returned by
+ * invoking the getter otherwise the method returns <code>null</code>.
*
* @param <T>
* @param serviceClass
- * @return
+ * @return the configured implementation of <code>serviceClass</code> or <code>null</code>
*/
public static <T extends IService> T getService(Class<T> serviceClass) {
ICdmApplicationConfiguration configuration = getCurrentApplicationConfiguration();
- Method[] methods = ICdmApplicationConfiguration.class
- .getDeclaredMethods();
+ Method[] methods = ICdmApplicationConfiguration.class.getDeclaredMethods();
T service = null;