public final static Literal readLuposLiteral(final ObjectInput in) throws IOException, ClassNotFoundException {
if (LiteralFactory.getMapType() == MapType.NOCODEMAP
|| LiteralFactory.getMapType() == MapType.LAZYLITERAL
|| LiteralFactory.getMapType() == MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP
|| LiteralFactory.getMapType() == MapType.PREFIXCODEMAP) {
return new StringLiteral((String) in.readObject());
} else {
return new CodeMapLiteral(InputHelper.readLuposInt(in));
}
}