private static void writeConfigObjectData(final Serializer serializer, final ConfigurationObject configurationObject) throws IOException {
		serializer.writeLong(configurationObject.getId());
		serializer.writeLong(configurationObject.getType().getId());
		final String pid = configurationObject.getPid();
		final String name = configurationObject.getName();
		byte flag = 0;
		if(configurationObject.isValid()) flag |= 1;
		if(pid != null) flag |= 2;
		if(name != null) flag |= 4;
		serializer.writeByte(flag);
		if(pid != null) serializer.writeString(pid);
		if(name != null) serializer.writeString(name);
		serializer.writeShort(configurationObject.getValidSince());
		serializer.writeShort(configurationObject.getNotValidSince());
		ConfigurationArea configurationArea = configurationObject.getConfigurationArea();
		long configAreaId = (configurationArea == null ? 0l : configurationArea.getId());
		serializer.writeLong(configAreaId);
		List<ObjectSet> sets = configurationObject.getObjectSets();
		serializer.writeInt(sets.size());
		for(ObjectSet set : sets) {
			serializer.writeLong(set.getId());
		}
	}