public void migrated(){
        this.id = ProcessManager.getInstance().generateID();

        Field f[] = this.getClass().getDeclaredFields();
        for (int i = 0; i < f.length; i++) {
        	if(f[i].getType().getSimpleName().equals("TransactionalFileInputStream"))
        	{
        		f[i].setAccessible(true);
        		TransactionalFileInputStream in = null;
        		try {
					in = (TransactionalFileInputStream) f[i].get(this);
				} catch (IllegalArgumentException e) {

					e.printStackTrace();
				} catch (IllegalAccessException e) {

					e.printStackTrace();
				}
        		if(in != null) {
        			in.setMigrated(true);
        		}

        	}
        	if(f[i].getType().getSimpleName().equals("TransactionalFileOutputStream"))
        	{
        		f[i].setAccessible(true);
        		TransactionalFileOutputStream out = null;
        		try {
					out = (TransactionalFileOutputStream) f[i].get(this);
				} catch (IllegalArgumentException e) {
					e.printStackTrace();
				} catch (IllegalAccessException e) {
					e.printStackTrace();
				}
        		if(out != null)
        		{
	        		out.setMigrated(true);
        		}
        	}
         }
    }