class RepositoryAclServiceImpl implements AclService {

    @SuppressWarnings({ "rawtypes", "unchecked" })
	public Acl readAclById(ObjectIdentity object) throws NotFoundException {
        InternalURI uri = getInternalUriFor(object);

        if(!uri.getProtocol().startsWith("repo")){
        	return _old_readAclById(object);
//        	return readAclById(object);
        }

        //temporary ACL to create ACE
        Acl result = new JasperServerAclImpl(uri,null);
        List<AccessControlEntry> aces = new ArrayList<AccessControlEntry>();
        // Special case for Import
        if (isImportRunning()) {
            Sid sid = sidRetrievalStrategy.getSid(SecurityContextHolder.getContext().getAuthentication().getPrincipal());
            aces.add(new AccessControlEntryImpl(null,result,sid,JasperServerPermission.ADMINISTRATION,true,false,false));
            return new JasperServerAclImpl(uri,aces,true);
        }

        Object[] existingAcl = new Object[2];
        List objectPermisions = permissionService.getObjectPermissionsForObject(null, uri, existingAcl);
        result = unwindObjectPermissions(uri, (Collection<ObjectPermission>)objectPermisions, existingAcl);
        if(result == null){
            result = new JasperServerAclImpl(uri, aces);
        }

        validateAcl(result);
        return result;
    }

}