code: @Override
  	public <T> T createMockComponent(final Class<T> type) {
  
  		if (Modifier.isFinal(type.getModifiers()) || type.isPrimitive()) {
  			LOG.warn("Skipping creation of a mock : {} as it is final or primitive type.", type.getSimpleName());
  			return null;
  		}
  		T mock = createNiceMock(type);
  
  		return mock;
  
  	}
docs: {@inheritDoc} By default a mock with nice behavior. Skipping creation, if
  the type is final or primitive. For details, see the EasyMock
  documentation.
  
  @return the mock object or null, if the type is final or primitive.