org.jboss.as.test.shared.TimeoutUtil should be used for setting any sleep or wait periods like this.