code: @Override
      public final boolean getCapacity (final Session session, final TargetCapacityInformations capacityInformation) throws Exception {
  
          if (capacityInformation == null) { throw new NullPointerException(); }
  
          final Connection connection = session.getNextFreeConnection();
          if (connection == null) { throw new NullPointerException(); }
  
          connection.nextState(new CapacityRequestState(connection, capacityInformation, TaskAttributes.SIMPLE));
          session.releaseUsedConnection(connection);
          return true;
      }
docs: {@inheritDoc}