Fixed nested Java app issue