code: public void cleanup() throws ResourceException
     {
        for (HelloWorldConnectionImpl connection : connections)
        {
           connection.setManagedConnection(null);
        }
        connections.clear();
     }
docs: Application server calls this method to force any cleanup on
  the ManagedConnection instance.
  
  @throws ResourceException generic exception if operation fails