Create Java thread Model