try to convert the small ref to a valid dataref that could be used by the fast-import stream . concode_field_sep String ref concode_field_sep String getRef concode_elem_sep SmallRef back
DataRef function ( ) { if ( ref . startsWith ( "srini_string" ) ) { return new DataRef ( ) { @ Override public void writeTo ( OutputStream arg0 ) throws IOException { arg0 . write ( ref . getBytes ( ) ) ; } @ Override public String getId ( ) { return ref ; } } ; } return null ; }