cloning with netbeans