Removed code that use airlift.slice, which cannot be used with JDK6