public boolean test(Object receiver, String property, Object[] args,
Object expectedValue) {
System.out.println("begin");
if (receiver instanceof TCComponentBOMLine && property.equals(DATASET_TYPE)){
TCComponentBOMLine bomLine = (TCComponentBOMLine)receiver;
TCComponentItemRevision itemRev;
try {
itemRev = bomLine.getItemRevision();
TCComponent[] components = itemRev.getRelatedComponents("IMAN_specification");
for (TCComponent component : components){
if ( component instanceof TCComponentDataset )
if (((TCComponentDataset)component).getTypeComponent().getTypeName().equals(expectedValue))
return true;