private final Session getSession (final String targetName) throws NoSuchSessionException {

        final Session session = sessions.get(targetName);

        if (session != null) {
            return session;
        } else {
            throw new NoSuchSessionException("Session " + targetName + " not found!");
        }
    }
private final Session getSession ( final String targetName ) throws NoSuchSessionException { final Session session = sessions . get ( targetName ) ; if ( session != null ) { return session ; } else { throw new NoSuchSessionException ( "Session " + targetName + " not found!" ) ; } }
Returns the <code>Session</code> instance of the iSCSI Target with the given name.

@param targetName The name of the session, which instance you want.
@return The requested <code>Session</code> instance.