@Override
    public Record getConversionOf(Record record) throws Exception {
        Record out = record;
        Double x, y, z;

        AttributeValue attrOutX = this.getOutParam("colX", out); 
        AttributeValue attrOutY = this.getOutParam("colY", out); 
        AttributeValue attrOutZ = this.getOutParam("colZ", out); 
        
        AttributeValue attrInRa = this.getInParam("colRa", out);
        AttributeValue attrInDec = this.getInParam("colDec", out);
        
        if(!isNull(attrInRa) && !isNull(attrInRa)/* && !isNull(attrOutX) && !isNull(attrOutY) && !isNull(attrOutZ)*/){
            try{
                Double ra = Double.parseDouble(attrInRa.getValue().toString());
                Double dec = Double.parseDouble(attrInDec.getValue().toString());
            
                x = Math.cos(dec)*Math.cos(ra);
                y = Math.cos(dec)*Math.sin(ra);
                z = Math.sin(dec);
                
               if(!x.isNaN()){
                   attrOutX.setValue(x);
               }
               if(!y.isNaN()){
                   attrOutY.setValue(y);
               }
               if(!z.isNaN()){
                   
                   attrOutZ.setValue(z);
               }
            }catch(NumberFormatException e){
                
            }
        }
        
        return out;
    }