code: private <T> T createInstance(Class<? extends T> serviceImplClass) {
          try {
              return SecurityActions.newInstance(serviceImplClass, new Class<?>[0], new Object[0]);
          } catch (Exception e) {
              throw new RuntimeException(
                  "Could not create a new instance of Service implementation " + serviceImplClass.getName(), e);
          }
      }
docs: Create a new instance of the found Service. <br/>
  <p>
  Verifies that the found ServiceImpl implements Service.
  
  @param serviceType
  The Service interface
  @param className
  The name of the implementation class
  @param loader
  The ClassLoader to load the ServiceImpl from
  
  @return A new instance of the ServiceImpl
  
  @throws Exception
  If problems creating a new instance