* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IExecutionEnvironment getExecutionEnvironment() {
final IExecutionEnvironmentsManager eeManager = JavaRuntime.getExecutionEnvironmentsManager();
boolean _notEquals = (!Objects.equal(eeManager, null));
if (_notEquals) {
TargetPlatform _targetPlatform = this.getTargetPlatform();
EList<TargetContent> _contents = _targetPlatform.getContents();
Iterable<Environment> _filter = Iterables.<Environment>filter(_contents, Environment.class);
final Function1<Environment, EList<String>> _function = new Function1<Environment, EList<String>>() {
public EList<String> apply(final Environment it) {
return it.getEnv();
}
};
Iterable<EList<String>> _map = IterableExtensions.<Environment, EList<String>>map(_filter, _function);
Iterable<String> _flatten = Iterables.<String>concat(_map);
final Function1<String, Boolean> _function_1 = new Function1<String, Boolean>() {
public Boolean apply(final String it) {
boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(it);
return Boolean.valueOf((!_isNullOrEmpty));
}
};
Iterable<String> _filter_1 = IterableExtensions.<String>filter(_flatten, _function_1);
final Function1<String, String> _function_2 = new Function1<String, String>() {
public String apply(final String it) {
return it.toUpperCase();
}
};
Iterable<String> _map_1 = IterableExtensions.<String, String>map(_filter_1, _function_2);
final List<String> envToUpper = IterableExtensions.<String>toList(_map_1);
for (final String env : envToUpper) {
{
IExecutionEnvironment[] _executionEnvironments = eeManager.getExecutionEnvironments();
final Function1<IExecutionEnvironment, Boolean> _function_3 = new Function1<IExecutionEnvironment, Boolean>() {
public Boolean apply(final IExecutionEnvironment it) {
String _id = it.getId();
String _upperCase = _id.toUpperCase();
return Boolean.valueOf(_upperCase.equals(env));