} else if(l instanceof au.csiro.ontology.model.DecimalLiteral) {
return new DecimalLiteral(((au.csiro.ontology.model.DecimalLiteral) l).getValue());
} else if(l instanceof au.csiro.ontology.model.IntegerLiteral) {
return new IntegerLiteral(((au.csiro.ontology.model.IntegerLiteral) l).getValue());
} else if(l instanceof au.csiro.ontology.model.StringLiteral) {
return new StringLiteral(((au.csiro.ontology.model.StringLiteral) l).getValue());
} else if(l instanceof au.csiro.ontology.model.FloatLiteral) {
return new DecimalLiteral(new BigDecimal(((au.csiro.ontology.model.FloatLiteral) l).getValue()));
} else {
throw new RuntimeException("Unexpected AbstractLiteral "+l.getClass().getName());
}