My code is:
// get name of the current index where the alias is active
GetAliasesResponse r = client.admin().indices().getAliases(new GetAliasesRequest().aliases("YOUR_ALIAS")).get();
for(Iterator<String> it = r.getAliases().keysIt(); it.hasNext();) {
// HERE IS THE REALINDEXNAME
String realIndexName = it.next();
}