private static OntoSpreadRelationWeight createRelationWeight(String filename, double defaultValue) {
if(filename == null || filename.equals("")){
return new OntoSpreadRelationWeightImpl();
}
OntoSpreadRelationWeightRDFImpl ontoSpreadRelationWeightRDFImpl = new OntoSpreadRelationWeightRDFImpl(
DAOUtils.createModelWrapper(new String[]{filename}));
ontoSpreadRelationWeightRDFImpl.setWeight(OntoSpreadRelationWeight.DEFAULT_URI, defaultValue);
return ontoSpreadRelationWeightRDFImpl;
}