public synchronized List<Tag> getModifiedTags(OperationContext octxt, long lastSync) throws ServiceException {
public synchronized List<Tag> getModifiedTags(OperationContext octxt, int lastSync) throws ServiceException {
    public synchronized List<Tag> getModifiedTags(OperationContext octxt, long lastSync) throws ServiceException {        if (lastSync >= getLastChangeID())            return Collections.emptyList();        List<Tag> modified = new ArrayList<Tag>();        boolean success = false;        try {            beginTransaction("getModifiedTags", octxt);            if (hasFullAccess()) {                for (Map.Entry<Object, Tag> entry : mTagCache.entrySet())                    if (entry.getKey() instanceof String) {                        Tag tag = entry.getValue();                        if (tag.getModifiedSequence() > lastSync && !(tag instanceof Flag))                            modified.add(tag);                    }            }            success = true;            return modified;        } finally {            endTransaction(success);        }    }