Object dataObject = node.get(DATA_ATTRIBUTE);  if (dataObject instanceof CachedUserData) { cachedUserData = (CachedUserData) dataObject; }  break;
Object dataObject = node.get(DATA_ATTRIBUTE);  if (dataObject instanceof CachedUserData) { cachedUserData = (CachedUserData) dataObject;
    public CachedUserData getUserData(final String ticketId) throws InvalidTicketException {        /* Validate argument */        if (ticketId == null || ticketId.equals("")) {            throw new IllegalArgumentException("loginTicketId must be a non-empty string");        }        MoriaTicketType[] potentialTicketTypes = new MoriaTicketType[] {MoriaTicketType.SSO_TICKET,                MoriaTicketType.TICKET_GRANTING_TICKET, MoriaTicketType.PROXY_TICKET};        CachedUserData cachedUserData = null;        /* Itterate over the potential ticket types looking for an ticket instance. */        for (int i = 0; i < potentialTicketTypes.length; i++) {            Fqn fqn = new Fqn(new Object[] {potentialTicketTypes[i], ticketId});            try {                if (store.exists(fqn)) {                    Node node = store.get(fqn);                    /* Check node/ticket validity (TTL). */                    MoriaTicket ticket = new MoriaTicket(ticketId, potentialTicketTypes[i], (String) node.get(PRINCIPAL_ATTRIBUTE),                            (Long) node.get(TTL_ATTRIBUTE));                    validateTicket(ticket, potentialTicketTypes[i], null);                    Object dataObject = node.get(DATA_ATTRIBUTE);                    /* cachedUserData will remain null if the returned object is of incorrect type. */                    if (dataObject instanceof CachedUserData) {                        cachedUserData = (CachedUserData) dataObject;                    }                    /* Break the for-loop if a ticket was found. */                    break;                }            } catch (LockingException e) {                messageLogger.logCritical("LockingException thrown by store. Rethrowing as RuntimeException.", e);                throw new RuntimeException(e);            } catch (TimeoutException e) {                messageLogger.logCritical("TimeoutException thrown by store. Rethrowing as RuntimeException.", e);                throw new RuntimeException(e);            }        }        return cachedUserData;    }