Changed everything from bbj to java