DefaultExternalTask (IonReader reader) { if (reader.next() == null) return null; reader.stepIn(); DefaultExternalTask task = new DefaultExternalTask(); task.setName(assertNotNull(readString(reader, "name"))); task.setQName(assertNotNull(readString(reader, "qName"))); task.setDescription(readString(reader, "description")); task.setGroup(readString(reader, "group")); task.setType(readString(reader, "type")); task.setTest(readBoolean(reader, "isTest")); task.setJvmTest(readBoolean(reader, "isJvmTest")); reader.stepOut(); return task; }