public void restoreUserPresence(String username) {
public boolean restoreUserPresence(String username) {  boolean restored = false;
    public void restoreUserPresence(String username) {        Collection<Presence> presences = UserPresenceUtil.removePresences(username);        if (presences != null) {            for (Presence presence : presences) {                Element presenceElement = presence.getElement();                Element phoneStatusElement = presenceElement.element("phone-status");                // If the phone-status attribute exists check to see if the status is avaialbable                if (phoneStatusElement != null) {                    Attribute statusAtt = phoneStatusElement.attribute("status");                    if (!PhoneStatus.Status.AVAILABLE.name().equals(statusAtt.getText())) {                        statusAtt.setText(PhoneStatus.Status.AVAILABLE.name());                    }                }                // The attribute doesn't exist add new attribute                else {                    PhoneStatus status = new PhoneStatus(PhoneStatus.Status.AVAILABLE);                    presence.getElement().add(status);                }                getInstance().getPresenceRouter().route(presence);            }        }    }